<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OsinfoDeviceLink: Libosinfo Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Libosinfo Reference Manual">
<link rel="up" href="ch01.html" title="Libosinfo">
<link rel="prev" href="OsinfoDeviceList.html" title="OsinfoDeviceList">
<link rel="next" href="OsinfoDeviceLinkFilter.html" title="OsinfoDeviceLinkFilter">
<meta name="generator" content="GTK-Doc V1.29 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#OsinfoDeviceLink.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#OsinfoDeviceLink.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#OsinfoDeviceLink.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="OsinfoDeviceList.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="OsinfoDeviceLinkFilter.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="OsinfoDeviceLink"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="OsinfoDeviceLink.top_of_page"></a>OsinfoDeviceLink</span></h2>
<p>OsinfoDeviceLink — A hardware devicelink</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="OsinfoDeviceLink.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDeviceLink.html" title="OsinfoDeviceLink"><span class="returnvalue">OsinfoDeviceLink</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDeviceLink.html#osinfo-devicelink-new" title="osinfo_devicelink_new ()">osinfo_devicelink_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="returnvalue">OsinfoDevice</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDeviceLink.html#osinfo-devicelink-get-target" title="osinfo_devicelink_get_target ()">osinfo_devicelink_get_target</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="OsinfoDeviceLink.html#osinfo-devicelink-get-driver" title="osinfo_devicelink_get_driver ()">osinfo_devicelink_get_driver</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoDeviceLink.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody><tr>
<td class="property_type">
<a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *</td>
<td class="property_name"><a class="link" href="OsinfoDeviceLink.html#OsinfoDeviceLink--target" title="The “target” property">target</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoDeviceLink.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDeviceLink.html#OSINFO-DEVICELINK-PROP-DRIVER:CAPS" title="OSINFO_DEVICELINK_PROP_DRIVER">OSINFO_DEVICELINK_PROP_DRIVER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="OsinfoDeviceLink.html#OSINFO-DEVICELINK-PROP-SUPPORTED:CAPS" title="OSINFO_DEVICELINK_PROP_SUPPORTED">OSINFO_DEVICELINK_PROP_SUPPORTED</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="OsinfoDeviceLink.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> <a class="link" href="OsinfoEntity.html" title="OsinfoEntity">OsinfoEntity</a>
        <span class="lineart">╰──</span> OsinfoDeviceLink
</pre>
</div>
<div class="refsect1">
<a name="OsinfoDeviceLink.description"></a><h2>Description</h2>
<p><a class="link" href="OsinfoDeviceLink.html" title="OsinfoDeviceLink"><span class="type">OsinfoDeviceLink</span></a> is an entity representing some kind of hardware
devicelink. DeviceLinks can be associated with operating systems
and platforms.</p>
</div>
<div class="refsect1">
<a name="OsinfoDeviceLink.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="osinfo-devicelink-new"></a><h3>osinfo_devicelink_new ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDeviceLink.html" title="OsinfoDeviceLink"><span class="returnvalue">OsinfoDeviceLink</span></a> *
osinfo_devicelink_new (<em class="parameter"><code><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *target</code></em>);</pre>
<p>Construct a new link for an <a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a>. The unique ID
of the link is set to match the ID of the target device.</p>
<div class="refsect3">
<a name="osinfo-devicelink-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>target</p></td>
<td class="parameter_description"><p>the target device</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-devicelink-new.returns"></a><h4>Returns</h4>
<p>the new device link. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-devicelink-get-target"></a><h3>osinfo_devicelink_get_target ()</h3>
<pre class="programlisting"><a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="returnvalue">OsinfoDevice</span></a> *
osinfo_devicelink_get_target (<em class="parameter"><code><a class="link" href="OsinfoDeviceLink.html" title="OsinfoDeviceLink"><span class="type">OsinfoDeviceLink</span></a> *link</code></em>);</pre>
<p>Retrieve the <a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> that the link points to.</p>
<div class="refsect3">
<a name="osinfo-devicelink-get-target.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>link</p></td>
<td class="parameter_description"><p>the device link</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="osinfo-devicelink-get-target.returns"></a><h4>Returns</h4>
<p>the target of the device link. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="osinfo-devicelink-get-driver"></a><h3>osinfo_devicelink_get_driver ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
osinfo_devicelink_get_driver (<em class="parameter"><code><a class="link" href="OsinfoDeviceLink.html" title="OsinfoDeviceLink"><span class="type">OsinfoDeviceLink</span></a> *link</code></em>);</pre>
</div>
</div>
<div class="refsect1">
<a name="OsinfoDeviceLink.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="OSINFO-DEVICELINK-PROP-DRIVER:CAPS"></a><h3>OSINFO_DEVICELINK_PROP_DRIVER</h3>
<pre class="programlisting">#define OSINFO_DEVICELINK_PROP_DRIVER   "driver"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="OSINFO-DEVICELINK-PROP-SUPPORTED:CAPS"></a><h3>OSINFO_DEVICELINK_PROP_SUPPORTED</h3>
<pre class="programlisting">#define OSINFO_DEVICELINK_PROP_SUPPORTED  "supported"
</pre>
</div>
</div>
<div class="refsect1">
<a name="OsinfoDeviceLink.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="OsinfoDeviceLink--target"></a><h3>The <code class="literal">“target”</code> property</h3>
<pre class="programlisting">  “target”                   <a class="link" href="OsinfoDevice.html" title="OsinfoDevice"><span class="type">OsinfoDevice</span></a> *</pre>
<p>The target of the device link.</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
</div>
<div class="refsect1">
<a name="OsinfoDeviceLink.see-also"></a><h2>See Also</h2>
<p><a class="link" href="OsinfoInstallScript.html#OsinfoOs"><span class="type">OsinfoOs</span></a>, <a class="link" href="OsinfoPlatform.html" title="OsinfoPlatform"><span class="type">OsinfoPlatform</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.29</div>
</body>
</html>